package com.blacksheep.mtm.service;

import cn.hutool.http.server.HttpServerResponse;
import com.blacksheep.mtm.pojo.common.DataTablesResult;
import com.blacksheep.mtm.pojo.manager.TbMedicine;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface MedicineService {

    /**
     * 获得订单列表
     * @param draw
     * @param start
     * @param length
     * @param search
     * @param orderCol
     * @param orderDir
     * @return
     */
    DataTablesResult getList(int draw, int start, int length, int[] state, String search, String minDate, String maxDate, String orderCol, String orderDir);

    int updateMedicine(TbMedicine medicine);

    int deleteBatch(Integer[] ids);



    TbMedicine insertMedicine(TbMedicine medicine);

    TbMedicine alertMedicineState(Integer id,Integer state);

    void downloadExcel(HttpServletResponse response) throws IOException;

    void insertFromExcel( List<Object> sheetData1);

}
